package com.iraeta.dao.main.sys;

import com.iraeta.entity.main.SysOrg;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysOrgDao {
    int insert(SysOrg record);
    SysOrg selectByPrimaryKey(Integer id);
    int updateByPrimaryKey(SysOrg record);
    int deleteByPrimaryKey(Integer id);

    List<SysOrg> selectAllChildrenOrg(@Param("orgId") Integer orgId);
    List<SysOrg> selectAllParentOrg(@Param("orgId") Integer orgId);
}